import request from '../utils/request';

export const sysNotice = query => {
    return request({
        url: '/sysNotice/page',
        method: 'get',
        params: query
    });
};

export const saveSysNotice = data => {
    return request({
        url: '/sysNotice/save',
        method: 'post',
        data: data
    });
};

export const updateSysNotice = data => {
    return request({
        url: '/sysNotice/update',
        method: 'put',
        data: data
    });
};

export const delSysNotice = data => {
    return request({
        url : '/sysNotice/delete/' + data,
        method: 'delete'
    });
};